.class public Lcom/example/m6shop/ApplyActivity;
.super Landroid/app/Activity;
.source "ApplyActivity.java"


# static fields
.field public static h:Landroid/os/Handler;


# instance fields
.field private cost:Ljava/lang/String;

.field private et:Landroid/widget/EditText;

.field m:Lmyapp/MyApp;

.field private map:Ljava/util/Map;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/Map",
            "<",
            "Ljava/lang/String;",
            "Ljava/lang/String;",
            ">;"
        }
    .end annotation
.end field

.field private mcontext:Landroid/content/Context;

.field private message:Ljava/lang/String;

.field private popView:Landroid/view/View;

.field private popWin:Landroid/widget/PopupWindow;

.field sure:Landroid/widget/ImageView;


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 35
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 37
    const/4 v0, 0x0

    iput-object v0, p0, Lcom/example/m6shop/ApplyActivity;->m:Lmyapp/MyApp;

    .line 35
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6shop/ApplyActivity;)V
    .locals 0

    .prologue
    .line 218
    invoke-direct {p0}, Lcom/example/m6shop/ApplyActivity;->getPopwindow()V

    return-void
.end method

.method static synthetic access$1(Lcom/example/m6shop/ApplyActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 36
    iget-object v0, p0, Lcom/example/m6shop/ApplyActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$2(Lcom/example/m6shop/ApplyActivity;)Landroid/widget/EditText;
    .locals 1

    .prologue
    .line 39
    iget-object v0, p0, Lcom/example/m6shop/ApplyActivity;->et:Landroid/widget/EditText;

    return-object v0
.end method

.method static synthetic access$3(Lcom/example/m6shop/ApplyActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 41
    iput-object p1, p0, Lcom/example/m6shop/ApplyActivity;->cost:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$4(Lcom/example/m6shop/ApplyActivity;)Ljava/lang/String;
    .locals 1

    .prologue
    .line 41
    iget-object v0, p0, Lcom/example/m6shop/ApplyActivity;->cost:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$5(Lcom/example/m6shop/ApplyActivity;Ljava/lang/String;)V
    .locals 0

    .prologue
    .line 41
    iput-object p1, p0, Lcom/example/m6shop/ApplyActivity;->message:Ljava/lang/String;

    return-void
.end method

.method static synthetic access$6(Lcom/example/m6shop/ApplyActivity;)Landroid/widget/PopupWindow;
    .locals 1

    .prologue
    .line 42
    iget-object v0, p0, Lcom/example/m6shop/ApplyActivity;->popWin:Landroid/widget/PopupWindow;

    return-object v0
.end method

.method private getPopwindow()V
    .locals 9

    .prologue
    const/4 v8, 0x1

    const/4 v7, 0x0

    const/4 v6, -0x2

    .line 219
    invoke-virtual {p0}, Lcom/example/m6shop/ApplyActivity;->getWindow()Landroid/view/Window;

    move-result-object v4

    invoke-virtual {v4}, Landroid/view/Window;->getAttributes()Landroid/view/WindowManager$LayoutParams;

    move-result-object v1

    .line 220
    .local v1, "lp":Landroid/view/WindowManager$LayoutParams;
    const v4, 0x3f333333    # 0.7f

    iput v4, v1, Landroid/view/WindowManager$LayoutParams;->alpha:F

    .line 221
    invoke-virtual {p0}, Lcom/example/m6shop/ApplyActivity;->getWindow()Landroid/view/Window;

    move-result-object v4

    invoke-virtual {v4, v1}, Landroid/view/Window;->setAttributes(Landroid/view/WindowManager$LayoutParams;)V

    .line 223
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    .line 224
    .local v0, "factory":Landroid/view/LayoutInflater;
    const v4, 0x7f03004f

    const/4 v5, 0x0

    invoke-virtual {v0, v4, v5}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v4

    iput-object v4, p0, Lcom/example/m6shop/ApplyActivity;->popView:Landroid/view/View;

    .line 225
    iget-object v4, p0, Lcom/example/m6shop/ApplyActivity;->popView:Landroid/view/View;

    const/4 v5, -0x1

    invoke-virtual {v4, v5}, Landroid/view/View;->setBackgroundColor(I)V

    .line 226
    new-instance v4, Landroid/widget/PopupWindow;

    iget-object v5, p0, Lcom/example/m6shop/ApplyActivity;->popView:Landroid/view/View;

    .line 227
    invoke-direct {v4, v5, v6, v6, v8}, Landroid/widget/PopupWindow;-><init>(Landroid/view/View;IIZ)V

    .line 226
    iput-object v4, p0, Lcom/example/m6shop/ApplyActivity;->popWin:Landroid/widget/PopupWindow;

    .line 228
    iget-object v4, p0, Lcom/example/m6shop/ApplyActivity;->popWin:Landroid/widget/PopupWindow;

    invoke-virtual {v4, v8}, Landroid/widget/PopupWindow;->setFocusable(Z)V

    .line 231
    iget-object v4, p0, Lcom/example/m6shop/ApplyActivity;->popWin:Landroid/widget/PopupWindow;

    iget-object v5, p0, Lcom/example/m6shop/ApplyActivity;->sure:Landroid/widget/ImageView;

    const/16 v6, 0x11

    invoke-virtual {v4, v5, v6, v7, v7}, Landroid/widget/PopupWindow;->showAtLocation(Landroid/view/View;III)V

    .line 233
    iget-object v4, p0, Lcom/example/m6shop/ApplyActivity;->popView:Landroid/view/View;

    const v5, 0x7f0700bd

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 235
    .local v3, "sure":Landroid/widget/TextView;
    new-instance v4, Lcom/example/m6shop/ApplyActivity$5;

    invoke-direct {v4, p0}, Lcom/example/m6shop/ApplyActivity$5;-><init>(Lcom/example/m6shop/ApplyActivity;)V

    invoke-virtual {v3, v4}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 249
    iget-object v4, p0, Lcom/example/m6shop/ApplyActivity;->popView:Landroid/view/View;

    const v5, 0x7f0700be

    invoke-virtual {v4, v5}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 250
    .local v2, "no":Landroid/widget/TextView;
    new-instance v4, Lcom/example/m6shop/ApplyActivity$6;

    invoke-direct {v4, p0}, Lcom/example/m6shop/ApplyActivity$6;-><init>(Lcom/example/m6shop/ApplyActivity;)V

    invoke-virtual {v2, v4}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 260
    return-void
.end method


# virtual methods
.method public getSource()Z
    .locals 1

    .prologue
    .line 144
    new-instance v0, Lcom/example/m6shop/ApplyActivity$4;

    invoke-direct {v0, p0}, Lcom/example/m6shop/ApplyActivity$4;-><init>(Lcom/example/m6shop/ApplyActivity;)V

    .line 214
    invoke-virtual {v0}, Lcom/example/m6shop/ApplyActivity$4;->start()V

    .line 215
    const/4 v0, 0x0

    return v0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 5
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 49
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 50
    const v2, 0x7f030019

    invoke-virtual {p0, v2}, Lcom/example/m6shop/ApplyActivity;->setContentView(I)V

    .line 51
    iput-object p0, p0, Lcom/example/m6shop/ApplyActivity;->mcontext:Landroid/content/Context;

    .line 52
    new-instance v2, Lmyapp/MyApp;

    invoke-direct {v2}, Lmyapp/MyApp;-><init>()V

    iput-object v2, p0, Lcom/example/m6shop/ApplyActivity;->m:Lmyapp/MyApp;

    .line 54
    invoke-virtual {p0}, Lcom/example/m6shop/ApplyActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 55
    .local v1, "intent":Landroid/content/Intent;
    const-string v2, "cost"

    invoke-virtual {v1, v2}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lcom/example/m6shop/ApplyActivity;->cost:Ljava/lang/String;

    .line 57
    const v2, 0x7f0700cc

    invoke-virtual {p0, v2}, Lcom/example/m6shop/ApplyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/EditText;

    iput-object v2, p0, Lcom/example/m6shop/ApplyActivity;->et:Landroid/widget/EditText;

    .line 58
    iget-object v2, p0, Lcom/example/m6shop/ApplyActivity;->et:Landroid/widget/EditText;

    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "\u672c\u6b21\u6700\u591a\u53ef\u63d0\u73b0"

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v4, p0, Lcom/example/m6shop/ApplyActivity;->cost:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    const-string v4, "\u5143"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/EditText;->setHint(Ljava/lang/CharSequence;)V

    .line 74
    const v2, 0x7f0700cb

    invoke-virtual {p0, v2}, Lcom/example/m6shop/ApplyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    .line 75
    .local v0, "back":Landroid/widget/ImageView;
    new-instance v2, Lcom/example/m6shop/ApplyActivity$1;

    invoke-direct {v2, p0}, Lcom/example/m6shop/ApplyActivity$1;-><init>(Lcom/example/m6shop/ApplyActivity;)V

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 86
    const v2, 0x7f0700bd

    invoke-virtual {p0, v2}, Lcom/example/m6shop/ApplyActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ImageView;

    iput-object v2, p0, Lcom/example/m6shop/ApplyActivity;->sure:Landroid/widget/ImageView;

    .line 87
    iget-object v2, p0, Lcom/example/m6shop/ApplyActivity;->sure:Landroid/widget/ImageView;

    new-instance v3, Lcom/example/m6shop/ApplyActivity$2;

    invoke-direct {v3, p0}, Lcom/example/m6shop/ApplyActivity$2;-><init>(Lcom/example/m6shop/ApplyActivity;)V

    invoke-virtual {v2, v3}, Landroid/widget/ImageView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 98
    new-instance v2, Lcom/example/m6shop/ApplyActivity$3;

    invoke-direct {v2, p0}, Lcom/example/m6shop/ApplyActivity$3;-><init>(Lcom/example/m6shop/ApplyActivity;)V

    sput-object v2, Lcom/example/m6shop/ApplyActivity;->h:Landroid/os/Handler;

    .line 140
    return-void
.end method
